﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class XPathAttribute : Attribute
    {
        public XPathAttribute(string xPath, bool required = true)
        {
            this.XPath = xPath;
            this.Required = required;
        }

        public string XPath { get; private set; }

        public bool Required { get; private set; }
    }
}
